package com.ld.businessCard.service;

import com.ld.businessCard.entity.Card;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface CardService {
	public int addCard(Card card);

	public int deleteCardById(Integer id);

	public int updateCard(Card card);

	public List<Card> getRecycleCardsByUserId(Integer userId);

	//通过姓名模糊查询所有名片
	public List<Card> getCardsByLike(String name);

	public List<Card> getAllCards();

	public Card getCardById(Integer id);


	public int recoverCard(Integer id);

	public List<Card> getAllRecycleCards();

	public List<Card> getMyCards(Integer userId);

	public List<Card> getMyValidCards(String account);

	public List<Card> getCardsByLikeName(String name, Integer userId);

	public int changeCard(Card card);

	public int recycleCard(Integer id);

	//导出所有名片信息
	public void exportAllCardsToExcel(List<Card> cards);
	public int deleteCardByUserId(Integer userId);
}
